$(document).ready(function(){
	$("#cbMaTruong").combobox({
         // And supply the "selected" event handler at the same time.
         selected: function(event, ui) {
            alert('Hello di ku Truong');
			belongToTruong();
         }
     });
	 $("#cbMaKhoi").combobox({
         // And supply the "selected" event handler at the same time.
         selected: function(event, ui) {
            alert('Hello di ku');
         }
     });
	$("#cbMaLop").combobox({
         // And supply the "selected" event handler at the same time.
         selected: function(event, ui) {
            alert('Hello di ku');
         }
     });
	 function belongToTruong(){
		$.ajax({
			type : 'POST',
			url : 'HocsinhsController/index',
			data: {
				
			},
			success : function(data){
				
			},
			error : function(XMLHttpRequest, textStatus, errorThrown) {
				
			}
		});
		return false;
	 }
	 
	//$('#cbMaTruong').change(function() {
	/*
		$.ajax({
			type : 'POST',
			url : 'post.php',
			dataType : 'json',
			data: {
				email : $('#email').val()
			},
			success : function(data){
				$('#waiting').hide(500);
				$('#message').removeClass().addClass((data.error === true) ? 'error' : 'success')
					.text(data.msg).show(500);
				if (data.error === true)
					$('#demoForm').show(500);
			},
			error : function(XMLHttpRequest, textStatus, errorThrown) {
				$('#waiting').hide(500);
				$('#message').removeClass().addClass('error')
					.text('There was an error.').show(500);
				$('#demoForm').show(500);
			}
		});
		return false;
	*/
	//});
});